<?php
 class IndexController extends Custom_Controller_Action
 {
     public function indexAction()
     {
        $this->_layout = Zend_Layout::getMvcInstance();
        $this->_layout->setLayout('default');
        //$this->RedirectUrl('/user/login');
         
     }
     
     public function searchAction()
     {
        if($this->isAjax)
        {
          $this->_helper->viewRenderer->setNoRender();
          $formdata = $this->getRequest()->getParams();
          //echo '<pre>';print_r($searchOptions);die();
          $searchObj = new Default_Model_DbTable_Search();
          $searchlist = $searchObj->getSearchProfile($formdata['fname'],$formdata['lname']);
          //echo '<pre>';print_r($searchlist);die();
          echo Custom_External::jsonEncode($searchlist);
        }
     }
 }
?>
